/* ===== global.css =====================================================
  == Styles that apply everywhere.
  ======================================================================= */

/* all localizable skin settings shall live here */
@import url("chrome://global/locale/intl.css");
@import url("chrome://global/skin/formatting.css");
@import url("chrome://global/skin/extra/sage/sage.css");
@import url("chrome://global/skin/extra/aio.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");




/* ::::: XBL bindings ::::: */

tabbox > tabs > tab,
.tab-bottom {
	-moz-binding: url("chrome://global/skin/globalBindings.xml#tab") !important;
}

menulist > menupopup,
.menulist-menupopup {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
}

.menulist-compact {
  -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact");
}

progressmeter[mode="undetermined"] {
  -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter-undetermined");
}
/*
radio {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#radio");
}
*/

/* may need this 
mainPopupSet {
	display: none;
	visibility: hidden;
}
*/

/* ::::: root elements ::::: */

button[dlgtype="help"] {
	background: url("chrome://global/skin/icons/question-mark.png") no-repeat top left !important;
	min-width: 1px !important;
	padding: 0px 0px 0px 0px !important;
	-moz-appearance: none;
	-moz-box-align: center;
	-moz-box-pack: center;
	height: 24px;
	width: 24px;
	margin: 4px;
}

button[dlgtype="help"]:hover:not([selected="true"]) {
	background: url("chrome://global/skin/icons/question-mark.png") no-repeat top right !important;
}

button[dlgtype="help"]:active {
	background: url("chrome://global/skin/icons/question-mark.png") no-repeat top right !important;
}

button[dlgtype="help"][disabled] {
  opacity: 0.5;
}

button[dlgtype="help"]:focus {
  outline: none;
}

/*remove help right endcap*/

button[dlgtype="help"] > .button-box > .button-text {
	display: none !important;
}

page,
dialog, 
window,
wizard, 
prefwindow {
	background-color: #E1E1E1;
	background-image: url('chrome://global/skin/toolbar/toolbar-pinstripe-overlay.png');
	color: #111;
	-moz-appearance: dialog;
		font-family: "Lucida Grande", Corbel, Segoe UI, Microsoft YaHei, Meiryo, Helvetica, tahoma, sans-serif !important;
}

page,
window,
dialog,
wizard {
	font-size: 11px;
}

prefwindow {
	font-size: 12px;
}


menubar, menubarmenu, toolbar, toolbox {
        background-color: transprent !important;
        color: #000;
        /*font: message-box;*/
		font-family: "Lucida Grande", Corbel, Segoe UI, Microsoft YaHei, Meiryo, Helvetica, tahoma, sans-serif !important;
}

#toolbar-menubar {
	padding-right: 5px;
}

#nav-bar{
	padding-left: 2px;
	padding-right: 5px;
} 

#PersonalToolbar {
	padding-left: 1px;
	padding-right: 1px;
} 

window.dialog {
  padding-top: 8px;
  padding-bottom: 10px;
  -moz-padding-start: 8px;
  -moz-padding-end: 10px;
}

[wait-cursor] {
  cursor: wait !important;
}

/* ::::: alert icons :::::*/

.message-icon,
.alert-icon,
.error-icon,
.question-icon {
  width: 32px;
  height: 32px;
}

.message-icon {
  list-style-image: url("chrome://global/skin/icons/Message.png") !important;
}

.alert-icon {
  list-style-image: url("chrome://global/skin/icons/Warning.png") !important;
}

.error-icon {
  list-style-image: url("chrome://global/skin/icons/Error.png") !important;
}

.question-icon {
  list-style-image: url("chrome://global/skin/icons/Question.png") !important;
}

/* ::::: iframe ::::: */

iframe {
	border: none;
	width: 100px;
	height: 100px;
	min-width: 10px;
	min-height: 10px;
}

/* ::::: statusbar ::::: */

statusbarpanel {
	-moz-box-align: center;
	-moz-box-pack: center;
	padding: 0 4px;
	/*
	-moz-appearance: statusbarpanel;
	background: url('chrome://global/skin/toolbar/toolbar-separator.png') repeat-y top right;
	*/
}

statusbar {
    border-top: none !important;
	border-left: 0px solid transparent !important;
	border-right: 0px solid transparent !important;
	border-bottom: none !important;
	background-image: url('chrome://global/skin/toolbar/statusbar.png');
	height: 17px !important;
	max-height: 17px !important;
	margin-right: 0px !important;
  padding: 1px 0 0 0 !important;
}

.statusbar-resizerpanel {
	/* -moz-appearance: resizerpanel; */
	-moz-box-align: end;
	-moz-box-pack: end;
	padding: 0px !important;
	margin: 0px !important;
	background: none;
}

.statusbarpanel-iconic,  .statusbarpanel-iconic-text, .statusbarpanel-menu-iconic {
  padding: 0px 1px 0px 1px;
}

resizer[dir="bottomright"] {
	/* -moz-appearance: resizer; */
	background: url("chrome://global/skin/toolbar/resizer.png") no-repeat bottom right;
	width: 17px;
	height: 17px;
	cursor: se-resize;
}


/* ::::: sidebar styles ::::: */
  
#sidebar {
  background-color: #D4DDE5;
}  

sidebarheader {
	display: none;
	border-top: 1px solid #888D93 !important;
	height: 24px !important;
    border-bottom-width: 0px !important;
    text-align: center;
  background-color: #D4DDE5 !important;
}

browser#sidebar tree,
browser#sidebar page {
  background-color: transparent !important;
  border: none !important;
  	background-image: none !important;
}

#bookmarksPanel, 
#history-panel {
  -moz-appearance: none !important;
  background-color: #D4DDE5 !important;
  	background-image: none !important;
}

#bookmarks-view, 
#historyTree, 
#bookmarks-view tree, 
#historyTree treechildren::-moz-tree-row, 
#bookmarks-view treechildren::-moz-tree-row {
  background-color: #D4DDE5 !important;
  border: none;
  -moz-margin-end: 0;
  -moz-appearance: none;
}

#bookmarksPanel > hbox,
#history-panel > hbox {
  -moz-appearance: none !important;
	background-color: #D4DDE5 !important;
	border-bottom: 1px solid #EAEFF5 !important;
	border-top: 1px solid #9FA9B5 !important;
	background: url("chrome://global/skin/toolbar/panel-bg.png") repeat-x right bottom;
}

#bookmarksPanel > hbox > label,
#history-panel > hbox > label {
  display: none !important;
}

#viewButton .button-menu-dropmarker {
  display: none !important;
}

/* ::::: miscellaneous ::::: */

.toolbar-focustarget {
	-moz-user-focus: ignore !important;
}

/* :::: Fix the menus by Jim N. :::: */
menu > .menu-iconic-left,
.menu-iconic-icon {
	width: 16px !important;
}
menuitem[label] {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic") !important;
}
menupopup menu[label],
popup menu[label] {
	-moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic") !important;
}



/* allow any number of columns in Customize Toolbar box */
#palette-box {
  float: left !important;
  overflow-x: hidden !important;
}
#palette-box .paletteRow {
  display: inline !important;
}
#palette-box toolbarpaletteitem {
  display: inline !important;
  width: 100px !important;
  height: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#palette-box toolbarpaletteitem > hbox,
#palette-box toolbarpaletteitem label {
  display: inline !important;
}

/* fix separator */
#wrapper-separator #separator {
  display: inline !important;
  font-size: 40px !important;
}

/* make all buttons' text be on the bottom - thanks Grist! */
#palette-box toolbarpaletteitem toolbarbutton {
  -moz-box-orient: vertical !important;
  text-align: center !important;
}

/* show button that AIOS hides by mistake */
#wrapper-console2-button #console2-button {
  display: -moz-box !important;
}


#extensionsView richlistitem[selected=true] {
	background-image: url("chrome://global/skin/toolbar/tipbg.png") !important;
}

#extensionsView richlistitem:not([selected=true]) .addonIcon {
  height: 16px !important;
  width: 16px !important;
}

#extensionsView richlistitem:not([selected=true]) .addon-description {
  display: none !important;
}

/* ::::: Style editor for Custom Buttons Extension ::::: */
#custombuttons-editor textbox 
{  -moz-appearance: none !important;
}